<template>
    <div class="logo">
        <img :src="Logo" />
        <span class="logo-title">{{ title }}</span>
    </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import Logo from "@/assets/logo.svg";
const title = ref("博客管理系统");
// const title = ref("黄河流域暴雨系统");
</script>

<style scoped lang="less">
.logo {
    display: flex; // 弹性布局
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-color: rgb(234, 255, 127);
    text-align: center;
    cursor: pointer; // 鼠标悬浮在元素上时，鼠标从箭头变成小手
    align-items: center;

    img {
        width: 36px;
        height: 36px;
        margin-left: 20px; // 元素的外边距
        margin-right: 12px;
    }

    .logo-title {
        width: auto;
        font-weight: 800; // 800为加粗
        color: black;
        font-size: 20px;
        line-height: 60px; // 元素上下居中
        font-family: FangSong; // 字体类型
    }
}
</style>
